<!DOCTYPE html>
<html>
<head>
    <title>h5url地址配置</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("urlhtmlconfig:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("urlhtmlconfig:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("urlhtmlconfig:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("urlhtmlconfig:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="urlhtmlconfig" :rules="ruleValidate" :label-width="80">
            <Form-item label="模板简介" prop="introduct">
                <i-input v-model="urlhtmlconfig.introduct" placeholder=""/>
            </Form-item>
            <Form-item label="HTML地址" prop="url">
                <i-input v-model="urlhtmlconfig.url" placeholder="地址"/>
            </Form-item>
            <Form-item label="业务编号" prop="business">
                <i-input v-model="urlhtmlconfig.business" placeholder=""/>
            </Form-item>
            <Form-item label="模板类型" prop="type">
                <Radio-group v-model="urlhtmlconfig.type">
                    <Radio label="1"><span>Done介绍</span></Radio>
                    <Radio label="2"><span>Done产品</span></Radio>
                    <Radio label="3"><span>邀请</span></Radio>
                    <Radio label="4"><span>学习中心</span></Radio>
                    <Radio label="5"><span>行业案例</span></Radio>
                    <Radio label="6"><span>分享</span></Radio>
                    <Radio label="7"><span>游戏</span></Radio>
                    <Radio label="8"><span>分类模板</span></Radio>
                    <Radio label="9"><span>动态详情</span></Radio>
                    <Radio label="10"><span>商家入驻</span></Radio>
                    <Radio label="11"><span>个人资产下部</span></Radio>
                    <Radio label="12"><span>店铺详情</span></Radio>
                    <Radio label="13"><span>能量值资产</span></Radio>
                    <Radio label="14"><span>SPC资产</span></Radio>
                    <Radio label="15"><span>资产详情报表</span></Radio>
                    <Radio label="16"><span>我的资产报表</span></Radio>
                </Radio-group>
                <i-input v-model="urlhtmlconfig.type" placeholder="模板类型"/>
            </Form-item>

            <Form-item label="是否启用" prop="statu">
                <Radio-group v-model="urlhtmlconfig.statu">
                    <Radio label="1">
                        <span>启用</span>
                    </Radio>
                    <Radio label="0">
                        <span>关闭</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/cms/urlhtmlconfig.js?_${date.systemTime}"></script>
</body>
</html>